﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.DesignPattern.DecoratorPattern.LOLHero
{
    public abstract class Hero:IHeroAction
    {
        protected Hero()
        {
            SkillList = new List<string>(4);
        }
        /// <summary>
        /// 英雄名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 英雄类别
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 设计师
        /// </summary>
        public string Designer => "Riot Games";
        /// <summary>
        /// 技能列表
        /// </summary>
        public List<string> SkillList { get; set; }

        /// <summary>
        /// 学习技能
        /// </summary>
        /// <param name="skillName">技能名</param>
        public virtual void LearnSkill(string skillName)
        {
            SkillList.Add(skillName);
        }
    }
}
